home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Gui4Cli / Docs / Tutorials / ListViews1.gc < prev    next >
Encoding:
Gui4CLI script  |  1980-01-03  |  789 b   |  36 lines

  1. G4C
  2.  
  3. ; This is an example of a NUM or TEXT type listview.
  4. ; These are single-select simple listviews
  5.  
  6. ; They have to be given the name of a file to display, and for
  7. ; this example we'll give it the "guis:docs/printme" file.
  8.  
  9.  
  10. WINBIG 304 47 283 168  ListViews1.gc   ; our window
  11. WinType 11110001                       ; resizable with all gadgets
  12.  
  13. xOnLoad
  14. GuiOpen ListViews1.gc
  15.  
  16. xOnClose
  17. GuiQuit ListViews1.gc
  18.  
  19.  
  20. ; this is the actual listview. Every time the user clicks on it, we'll
  21. ; display the text of the line the user clicked on, in our text gadget
  22. ; below (GadID 1)
  23.  
  24. XLISTVIEW 4 16 274 148 "" variable "guis:docs/Printme" 10 TXT
  25. update listviews1.gc 1 $variable
  26.  
  27.  
  28. ; This is the lucky text gadget that gets to display the line..
  29.  
  30. TEXT 4 1 273 13 "Click on a line.." 40 BOX
  31. gadid 1
  32.  
  33.  
  34.  
  35.  
  36.